<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>增加退住信息页面</title>
    <link rel="stylesheet" href="webjars/bootstrap/3.3.5/css/bootstrap.css" type="text/css">
    <script src="webjars/jquery/3.4.1/jquery.js"></script>
    <script src="webjars/bootstrap/3.3.5/js/bootstrap.js"></script>
    <style>
        form{
            margin-left: 12px;
        }
        input{
            width: 200px ;
            height: 25px;
            background-color: #f0f8ff;
            margin-bottom: 5px;
        }
        input:hover{
            border:2px #00ff00 solid;
        }
        .mandatory{
            color: red;
            margin-left: 6px;
        }
    </style>
    <script>
        $(document).ready(function () {
            var time = new Date();
            var day = ("0" + time.getDate()).slice(-2);
            var month = ("0" + (time.getMonth() + 1)).slice(-2);
            var today = time.getFullYear() + "-" + (month) + "-" + (day);
            $('#reviewtime').val(today);
        })
    </script>
</head>
<body>
    <legend>增加退住信息</legend>
    <form action="/addW" method="post">
        客户姓名：<input type="text" name="name" id="name" required> <br>
        客户性别：<input type="text" name="sex" id="sex" required><br>
        客户年龄：<input type="date" name="age" id="age" list="sts" required><br>
        <datalist id="sts" style="display:none;">
            <option value="男">男</option>
            <option value="女">女</option>
        </datalist>
        档案号：&emsp;<input type="text" name="fnumber" id="fnumber" required><br>
        入住时间：<input type="date" name="citime" id="citime" required><br>
        退住时间：<input type="date" name="withdrawaltime" id="withdrawaltime" required><br>
        退住类型：<input type="text" name="withdrawatype" id="withdrawatype" list="ty" required><br>
        <datalist id="ty" style="display:none;">
            <option value="正常退住">正常退住</option>
            <option value="保留床位">保留床位</option>
        </datalist>
        退住原因：<input type="text" name="withdrawareason" id="withdrawareason" required><br>
        状&emsp;&emsp;态：<input type="text" name="status" id="status" list="sta" value="待审核" required><br>
        <datalist id="sta" style="display:none;">
            <option value="通过">通过</option>
            <option value="拒绝">拒绝</option>
        </datalist>
        申请时间：<input type="date" name="apptime" id="apptime" required><br>
        审核意见：<input type="text" name="auditopinion" id="auditopinion" list="opin"><br>
        <datalist id="opin" style="display:none;">
            <option value="通过">通过</option>
            <option value="拒绝">拒绝</option>
        </datalist>
        审核人：&emsp;<input type="text" name="reviewer" id="reviewer"><br>
        审核时间：<input type="date" name="reviewtime" id="reviewtime"><br>
        备&emsp;&emsp;注：<input type="text" name="remarks" id="remarks"><br>
        <!--添加隐藏域-->
        <input type="hidden" name="_method" value="put">
        <button>提交添加</button>
        <button type="button" onclick="history.go(-1)">返回</button>
    </form>
    <script>
        $('[required]').after('<span class="mandatory">*</span>');
    </script>
</body>
</html>